Once you’ve set up your environment, try on Ditto and perform your first peer‑to‑peer sync.
YOUR_APP_ID
and YOUR_PLAYGROUND_TOKEN
with your access credentials available from the portal. (See Sync Credentials)store
namespace with a local INSERT INTO
query, specifying the document to insert.
For example, inserting a new document with a single field "color"
set to "blue"
:
store
namespace.SELECT
query specifying the document collection you want to watch and define a callback function to handle changes.sync
namespace.
For example, creating a subscription to sync updates made to documents in the cars
collection with color
set to blue
:
CREATE
, READ
, UPDATE
, and DELETE
(CRUD) database operations and data sync:
store
namespace.sync
namespace.